import service from "@/utils/request"

// 获取设备投放区域列表
export function getAreaInfoList() {
  return service({
    url: '/area/getAreaInfoList',
    method: 'get'
  })
}

// 添加设备投放区域
export function addAreaInfo(data) {
  return service({
    url: '/area/addAreaInfo',
    method: 'post',
    data: data
  })
}

// 修改设备投放区域
export function updateAreaInfo(data) {
  return service({
    url: '/area/updateAreaInfo',
    method: 'put',
    data: data
  })
}

// 删除设备投放区域
export function deleteAreaInfo(areaId) {
  return service({
    url: `/area/deleteAreaInfo/${areaId}`,
    method: 'delete'
  })
}
